projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1446ac
)
x86: fsp: Report correct number of E820 table entries
author
Bin Meng
<
[email protected]
>
Mon, 28 Sep 2015 09:11:59 +0000
(
02:11
-0700)
committer
Simon Glass
<
[email protected]
>
Tue, 29 Sep 2015 04:56:27 +0000
(21:56 -0700)
The logic to calculate the number of E820 table entries is wrong
when walking through the FSP HOB tables. Fix it.
Signed-off-by: Bin Meng <
[email protected]
>
Tested-by: Jian Luo <
[email protected]
>
Acked-by: Simon Glass <
[email protected]
>
arch/x86/lib/fsp/fsp_dram.c
patch
|
blob
|
history
diff --git
a/arch/x86/lib/fsp/fsp_dram.c
b/arch/x86/lib/fsp/fsp_dram.c
index 28552fa15a0e32b8601cb177a7ff26b58d727304..e51ca96eb712fa514384cbe81278e4b5c091964d 100644
(file)
--- a/
arch/x86/lib/fsp/fsp_dram.c
+++ b/
arch/x86/lib/fsp/fsp_dram.c
@@
-72,9
+72,10
@@
unsigned install_e820_map(unsigned max_entries, struct e820entry *entries)
entries[num_entries].type = E820_RAM;
else if (res_desc->type == RES_MEM_RESERVED)
entries[num_entries].type = E820_RESERVED;
+
+ num_entries++;
}
hdr = get_next_hob(hdr);
- num_entries++;
}
/* Mark PCIe ECAM address range as reserved */